package water_qanxun_api.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@TableName("t_devices")
@Data
public class DevicesData {
    @TableId(value = "id", type = IdType.AUTO)  // 设置id策略为自增
    private Integer id;
    private String name;
    // 设备mac地址
    private String uid;
    private int userKey;
    private String devConfig;
    
    public DevicesData(String name, String uid, int userKey) {
        this.name = name;
        this.uid = uid;
        this.userKey = userKey;
    }
    
    public DevicesData() {
    }
}
